<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>便利店销售管理系统登录页面</title>
<meta name="description" content="">
<meta name="keywords" content="">
<script src="./js/jQuery.js"></script>
<script src="./js/index.js"></script>
<script src="./js/popper.js"></script>
<link rel="stylesheet" href="./css/bootstrap/css/bootstrap.css">
<script src="./css/bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="./css/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="./css/index.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<div class="section__table table-responsive">
	<table class="table table-striped">
		<tr>
			<th>ID</th>
			<th>会员ID</th>
			<th>会员类型</th>
			<th>入会时间</th>
			<th>用户ID</th>
			<th>操作</th>
		</tr>
		<c:forEach var="vipTable" items="${vipTableList}">
			<tr>
				<td>${vipTable.id}</td>
				<td>${vipTable.hid}</td>
				<td>${vipTable.type}</td>
				<td>${vipTable.time}</td>
				<td>${vipTable.uid}</td>
				<td>
					<a	href="deleteVipById?id=${vipTable.id}">
						<button class="btn btn-danger">
							<i class="fa fa-close"></i>
							&nbsp;删除
						</button>
					</a>
					<a href="toUpdateVipById?id=${vipTable.id}">
						<button class="btn btn-info">
							<i class="fa-pencil-square-o fa"></i>
							&nbsp;修改
						</button>
					</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</div>
<div class="table__btn-group">
<a href="NewVip.jsp"><button class="btn btn-outline-success"><i class="fa fa-plus"></i>&nbsp;新增会员</button></a>
<a href="blank.jsp"><button class="btn btn-outline-info" ><i class="fa fa-arrow-left"></i>&nbsp;返回主页面</button></a>
</div>
</body>
</html>